import 'package:flutter/material.dart';

class DemoSon extends StatefulWidget {
  const DemoSon({super.key});

  @override
  State<DemoSon> createState() => DemoSonState();
}

class DemoSonState extends State<DemoSon> {
  late String name = "xian";

  changeName(String name) {
    setState(() {
      this.name = name;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Text("$name", style: TextStyle(fontSize: 42), ),
    );
  }
}
